<template>
  <svg class="icon" aria-hidden="true" :style="{fontSize:size+'px',color:color}">
    <use :xlink:href="`#${name}`"></use>
  </svg>
</template>

<script>
export default {
  name: "Icon",
  props: {
    name: {
      type: String,
      required: true
    },
    size:{
      type:[Number,String],
      default:20
    },
    color:{
      type:[String],
      default:''
    }
  }
}
</script>

<style scoped>

</style>
